package com.lwt.mapper;

import com.lwt.po.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MessageMapper {

    //添加一个评论
    int saveMessage(Message message);

    //查询评论
    List<Message> findMessage(@Param("ParentId") Long id);


    //删除评论
    void deleteMessage(Long id);

}
